package cn.gameo2o.service.plgl.impl;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.gameo2o.dao.plgl.PingLunGuanLiDAO;
import cn.gameo2o.pojo.O2o_commentmanage;
import cn.gameo2o.service.plgl.PingLunGuanLiService;
import cn.gameo2o.util.PageParam;

/**
 * 评论管理service实现
 * @author 王丹丹
 *
 */
@Service
public class PingLunGuanLiServiceImpl implements PingLunGuanLiService {
	@Autowired
	private PingLunGuanLiDAO plDao;
	
	public void findPl(Map<String, Object> params, PageParam page) {
		Long count = plDao.count(params);
		page.setTotal(count);
		page.setRows(plDao.find(params, page.getFirst(), page.getPageSize()));
	}

	public O2o_commentmanage findPlById(int id) {
		// TODO Auto-generated method stub
		return plDao.findById(id);
	}

	public int deletePl(int id) {
		// TODO Auto-generated method stub
		return deletePl(id);
	}
}
